//
//  BRRuleModel.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/11/10.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BRBaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BRRuleModel : BRBaseModel

/// 计费费用
@property (nonatomic,strong) NSDecimalNumber *amount;
/// 计费周期 分
@property (nonatomic,assign) NSInteger cycle;
/// 计费周期期限类型：1-分 2-小时 3-天
@property (nonatomic,assign) NSInteger controlType;
/// 每日封顶费用
@property (nonatomic,strong) NSDecimalNumber *dayAmount;
/// 是否默认 1是
@property (nonatomic,assign) NSInteger defaulted;
/// 押金
@property (nonatomic,strong) NSDecimalNumber *depositAmount;
/// 免费时长
@property (nonatomic,assign) NSInteger freeDuration;
/// 免费时长 分
@property (nonatomic,assign) NSInteger freeDurationControlType;
/// 免费最大订单数 0：无限
@property (nonatomic,assign) NSInteger freeLimit;
/// id
@property (nonatomic,assign) NSInteger ruleId;
/// 最大租借时长
@property (nonatomic,assign) NSInteger maxRentDuration;
/// 最大租借时长 单位：
@property (nonatomic,assign) NSInteger maxDurationControlType;
/// 罚金
@property (nonatomic,strong) NSDecimalNumber *penaltyAmount;
/// 平台id
@property (nonatomic,assign) NSInteger platformId;
/// 状态 1正常
@property (nonatomic,assign) NSInteger state;
/// 前置费用
@property (nonatomic,strong) NSDecimalNumber *upfrontAmount;
/// 前置时长
@property (nonatomic,assign) NSInteger upfrontDuration;
/// 前置时长 单位：
@property (nonatomic,assign) NSInteger upfrontDurationControlType;

/// 计费规则编号
@property (nonatomic,strong) NSString *billingCode;
/// 规则说明
@property (nonatomic,strong) NSString *descriptionCustom;
/// 标题
@property (nonatomic,strong) NSString *title;
/// 系统默认规则（当前全免费FREE USAGE）
@property (nonatomic,assign) BOOL isSystem;

@end

NS_ASSUME_NONNULL_END
